const whichTransitionEvent = (element) => {
	let t;
	const transitions = {
		OTransform: 'oanimationend',
		msTransform: 'MSAnimationEnd',
		MozTransform: 'mozAnimationEnd',
		webkitTransform: 'webkitAnimationEnd',
		transform: 'animationend'
	};
	for (t in transitions) {
		if (element.style[t] !== undefined) {
			return transitions[t];
		}
	}
	return null;
};

export {whichTransitionEvent};
export default {whichTransitionEvent};
